package com.sh.data.engine.domain.management.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sh.data.engine.domain.base.model.PageResult;
import com.sh.data.engine.domain.management.model.domain.OperationLogDomain;
import com.sh.data.engine.domain.management.model.param.OperationLogQueryParam;
import com.sh.data.engine.repository.dao.management.operation.entity.OperationsLogEntity;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public interface OperationService extends IService<OperationsLogEntity> {

    /**
     * 分页查询操作日志
     * @param param
     * @return
     */
    PageResult<OperationLogDomain> getLogPageList(OperationLogQueryParam param);

    /**
     * 下载自定义日期范围内的操作日志
     */
    void exportLogsToExcel(OperationLogQueryParam param, HttpServletResponse response) throws IOException;

}
